@extends('home.register.register')
@section('title')
    <title>找回密码页面</title>
@endsection

@section('header')
<div id="form-header" class="header">
    <div class="logo-con w clearfix">
        <a href="" class="logo">
        </a>
        <div class="logo-title">找 回 密 码</div> 
    </div>
</div>
@endsection

@section('content')
    <div class="main clearfix" id="form-main">
        <div class="reg-form fl"> 
	        <div class="alert alert-success alert-dismissable" style="margin-left: 250px;width: 397px;display: none;">
	            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	            <ul>
	                <li></li>
	            </ul>
	        </div>
	        <!--      form表单        --> 
            <form action="{{url('/login/dologin')}}" id="register-form" method="post">
                <div class="form-item form-item-account" id="form-item-account" style="margin-left: 250px;line-height: 52px">
                    <label>用 户 名</label>
                    <input type="text" id="form-account" name="uname" class="field" autocomplete="off" maxlength="20"
                           placeholder="请输入您的账户名和登录名" >
                </div>
                <div class="input-tip">
                    <span></span>
                </div>
                
                <div class="form-item form-item-authcode" style="margin-left: 250px;line-height: 52px">
                    <label>验 证 码</label>
                    <input type="text" autocomplete="off" name="authcode" id="authCode"  class="field form-authcode"
                           placeholder="请输入验证码">
                    <img src="{{url('/login/code')}}" class="img-code" title="" id="imgAuthCode" onclick="this.src=this.src+'?'">
                </div>
                <div class="input-tip">
                    <span></span>
                </div>
                {{csrf_field()}}
                <div>
                    <button type="submit" id="smt" class="btn-register" style="margin-left: 250px">提 交</button>
                </div>         
            </form>
            <!-- form表单end -->
        </div>
    </div>

    <!-- js代码 -->
  	<script type="text/javascript">

  		// 获取和丧失焦点
  		$("input").focus(function(){
  			$(this).parent().css('border', '1px solid #1AB394');
  		});
  		
  		$("input").blur(function(){
  			$(this).parent().css('border', '1px solid #DDDDDD');
  		});

  		// 设置ajax全局变量
	    $.ajaxSetup({
	    headers: {
	        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
	    }
	    });

	    
  	@endsection

